/**
 * TO BE DETERMINED
 */
package org.eichar.client;

import java.util.Collection;

import com.google.gwt.user.client.ui.Widget;

/**
 * DataStructure encapsulating a panel and the observers for interacting with
 * its widgets. Access to the observers is primarily for testing purposes.
 * 
 * @author Jesse
 */
public class QuestionPanel {
    private final Widget widget;

    private final Collection/* <Observer> */observers;

    /**
     * Creates the observer
     * 
     * @param widget
     *            the panel for the object
     * @param observers
     *            the observers for the widgets in the panel.
     */
    public QuestionPanel(final Widget widget,
            final Collection/* <Observer> */observers)
            throws IllegalStateException {
        this.widget = widget;
        this.observers = observers;
    }

    public Collection/* <Observer> */getObservers() {
        return observers;
    }

    public Widget getWidget() {
        return widget;
    }

}
